package com.ctsi.commons.util;
/**
 * 序列化,  可以用hession,kyro等实现
 * @author yueming
 *
 */
public interface Serializer {
    byte[] serialize(Object instance);

    Object deserialize(byte[] data);
    
    
    Object deserialize(byte[] data, int offset, int length);
}
